package com.bwie.groupon.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.common.utils.PageUtils;
import com.bwie.common.utils.Query;

import com.bwie.groupon.dao.SubscriptionDeductionDao;
import com.bwie.groupon.entity.SubscriptionDeductionEntity;
import com.bwie.groupon.service.SubscriptionDeductionService;


@Service("subscriptionDeductionService")
public class SubscriptionDeductionServiceImpl extends ServiceImpl<SubscriptionDeductionDao, SubscriptionDeductionEntity> implements SubscriptionDeductionService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SubscriptionDeductionEntity> page = this.page(
                new Query<SubscriptionDeductionEntity>().getPage(params),
                new QueryWrapper<SubscriptionDeductionEntity>()
        );

        return new PageUtils(page);
    }

}